<table class="layui-table text-center"  lay-size="sm">
    <thead>
        <tr>
            <th style="width: 64px">#</th>
            <th><div class="text-left">平台</div></th>
            <th><div class="text-left">账号</div></th>
            <th><div class="text-left">同步方式</div></th>
            <th>小时自动同步</th>
            <th>同步小时内订单</th>
            <th>同步状态</th>
            <th>开始时间</th>
            <th>完成时间</th>
            <th>最后同步时间</th>
            <td>错误次数</td>
            <td>备注</td>
            <td>添加时间</td>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $k => $item}
            <tr>
                <td>{$k+1}</td>
                <td><div class="text-left">{$item.platform.name}</div></td>
                <td><div class="text-left">{$item.username}</div></td>
                <td><div class="text-left">{$item.settings.is_auto_sync}</div></td>
                <td>{$item.settings.hours}</td>
                <td>{$item.settings.auto_sync_hours}</td>
                <td>{$item.settings.status}</td>
                <td>{$item.settings.start_sync_time}</td>
                <td>{$item.settings.finish_sync_time}</td>
                <td>{$item.settings.last_sync_time}</td>
                <td>{$item.settings.error_count}</td>
                <td>{$item.settings.remark}</td>
                <td>{$item.settings.create_time|substr=0,10}</td>
                <td>
                    <a class="layui-btn layui-btn-xs layui-btn-warm ajax-form" href="{:url('sync_order', ['account_id'=>$item['account_id']])}">同步订单</a>
                    <a class="layui-btn layui-btn-xs layui-btn-normal ajax-form" href="{:url('add', ['account_id'=>$item['account_id']])}">编辑</a>
                    <a class="layui-btn layui-btn-xs  layui-btn-danger ajax-get" title="删除" confirm="1" href="{:url('delete', ['account_id'=>$item['account_id']])}">删除</a>
                </td>
            </tr>
        {/foreach}
        {empty name="list"}
            <tr>
                <td colspan="12">没有数据</td>
            </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>